package com.zjx.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author zhaojiaxu
 * @date 2021/07/05 19:39
 **/

public class MessageEvent extends ApplicationEvent implements Serializable {

	private static final long serialVersionUID = 7036100984123911376L;

	/**
	 * Create a new {@code ApplicationEvent}.
	 *
	 * @param source the object on which the event initially occurred or with
	 *               which the event is associated (never {@code null})
	 */
	public MessageEvent(Object source) {
		super(source);
	}

	@Override
	public String toString() {
		return "MessageEvent{" +
				"source="+source+
				"}";
	}
}

